package com.cy.train.batch.controller;

import com.cy.train.batch.feign.BusinessFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Date: 2024/3/1 12:03
 * @Author: cyzhang
 */
@RestController
@RequestMapping("/batch")
public class TestController {
    @Autowired
    private BusinessFeign businessFeign;

    @GetMapping("/hello")
    public String test() {
        return businessFeign.hello();
    }
}
